package com.kuang.mapper;


import com.kuang.entity.Major;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

@Repository //@Repository注解来标识数据访问层的实现类
public interface MajorMapper extends Mapper<MajorMapper> {

    /**
     *查询专业下拉框信息
     * **/
    List<Major> findAoo();

    /**
     * 根据专业名称查询专业id
     * */
    Integer findMajorIdByName(@Param("name")String name);
}
